package main

import (
	"io"
	"log"
)

//数据转发
func forwardRequest(r io.Reader, w io.Writer, disconnect chan bool) {
	_, err := io.Copy(w, r)
	if err != nil {
		log.Println("收发错误: ", err)
	}
	disconnect <- true
}
